package com.itheima.io.fileoutputstream.demo01;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileOutputStreamDemo01 {

    public static void main(String[] args) throws IOException {

        FileOutputStream fileOutputStream = new FileOutputStream("itheima-io-fileoutputstream\\a.text");

//        fileOutputStream.write(97);
//        fileOutputStream.write("buyetian".getBytes());
        byte[] bytes = {97, 98, 99, 100};
        fileOutputStream.write(bytes, 0, 3);

        fileOutputStream.close();
    }
}
